<?php
//require('Header_iframe.php');
include('../db_connect.php');

//we are validated, show all courses
	$sql="select course_dept,course_num,course_name from fb_courses";
	$result=$db->Execute($sql);
    //we have some record(s)...display in a table
    echo "<table class=\"small\" cellspacing=\"5\">";
    echo "<tr><td><b>Course Dept</b></td><td><b>Course Number</b></td><td><b>Course Name</b></td></tr>";
    while(!$result->EOF){
            echo "<tr><td>".$result->fields['course_dept']. "</td><td>".$result->fields['course_num']. "</td><td>".$result->fields['course_name']."</td></tr>";
                
        $result->MoveNext();
    }
    echo "</table>";
?>
